package com.dachuang.canjiren.service;

import com.dachuang.canjiren.entity.Business;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dachuang.common.utils.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
public interface BusinessService extends IService<Business> {
    /**
     * 创业
     * @param logo
     * @param name
     * @param address
     * @param firld
     * @param content
     * @param prospectus
     * @param userId
     * @return
     */
    R insertBusiness(String logo,String name,String address ,String firld ,String content ,String prospectus,Integer userId);

    /**
     * 根据创业id查询
     * @param id
     * @return
     */
    R selectBusiness(Integer id);

    /**
     * 根据用户查找
     * @param userId
     * @return
     */
    R selectUserBusiness(Integer userId);

    /**
     * 列表展示
     * @return
     */
    R selectBusinessList();

}
